home *** CD-ROM | disk | FTP | other *** search
- /*TRIGGER.C module to trigger forwarding session on XOBBS.*/
- /* Jim Durham,W2XO 10-24-88*/
- /* Version 1.0 */
- /* Code released to the amateur radio community */
-
-
- #include "xobbs.h"
-
- main()
- {
- int fd;
- int scmsgqid;
-
- if((fd = open(FWDTMP,O_RDONLY,0666)) < 1){
- printf("Trigger: Can't Open Forwarding Temp File\n");
- exit(1);
- }
- read(fd,&scmsgqid,sizeof(scmsgqid));
- msg.mtext[0] = 'F';
- msg.mtype = (long)1;
- if((msgsnd(scmsgqid,&msg,sizeof(scmsgqid),0600)) < 0)
- perror("trigger:Sending F Message:");
- }
-